const path = require('path');

function resolve(dir){
  return path.join(__dirname, dir);
}

module.exports = {
  lintOnSave: false,
  publicPath: '/dream/',
  devServer: {
    host: 'localhost',
    port: 8088,
    proxy: {
      '': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        // pathRewrite: {
        //   '/api': ''
        // }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  }
  // publicPath: '/app',
  // outputDir: './dist',
  // productionSourceMap: true,
  // chainWebpack: (config) =>{
  //   config.plugins.delete('prefetch');
  // }
}
